package mani.threads.sync;

public class Person implements Runnable {
	private Account account;
	
	public Person(Account account){
		this.account=account;
	}

	@Override
	public void run() {
		for(int i=0;i<100;i++){
			account.withdrawAmount();
		}
	}

}
